package twt.practice.votingsystem.dao;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import twt.practice.votingsystem.pojo.Choice;
import twt.practice.votingsystem.pojo.Title;

import java.util.List;

@Repository
@Mapper
public interface VoteMapper {
    List<Title> getVote();
    List<Choice> getChoice(Integer title_id);
    int Voting(Integer title_id, Integer choice_id);
}
